<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JSDoc: Class: TemplateInfo</title>
    
    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">
    
    <h1 class="page-title">Class: TemplateInfo</h1>
    
    



<section>
    
<header>
    <h2>
    TemplateInfo
    </h2>
    
        <div class="class-description">TemplateInfo</div>
    
</header>  

<article>
    <div class="container-overview">
    
    
    
        
<dt>
    <h4 class="name" id="TemplateInfo"><span class="type-signature"></span>new TemplateInfo<span class="signature">(name, elem, parent, fixed, subCheck)</span><span class="type-signature"></span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        Template의 정보를 관리하는 class.
    </div>
    

    
    
    
    
    
        <h5>Parameters:</h5>
        

<table class="params">
    <thead>
	<tr>
		
		<th>Name</th>
		
		
		<th>Type</th>
		
		
		
		
		
		<th class="last">Description</th>
	</tr>
	</thead>
	
	<tbody>
	
	
        <tr>
            
                <td class="name"><code>name</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">string</span>


            
            </td>
            
            
            
            
            
            <td class="description last">Template의 이름.</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>elem</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">element</span>


            
            </td>
            
            
            
            
            
            <td class="description last">Template으로 지정된 Element.</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>parent</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">element</span>


            
            </td>
            
            
            
            
            
            <td class="description last">Template으로 지정된 Element의 parentElement.</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>fixed</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">boolean</span>


            
            </td>
            
            
            
            
            
            <td class="description last">Template을 고정 상태로 사용할 것인지를 지정.</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>subCheck</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">boolean</span>


            
            </td>
            
            
            
            
            
            <td class="description last">sub template인지를 지정.</td>
        </tr>
	
	
	</tbody>
</table>
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="stemplate.js.html">stemplate.js</a>, <a href="stemplate.js.html#line195">line 195</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    
    
</dd>

    
    </div>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        <h3 class="subsection-title">Methods</h3>
        
        <dl>
            
<dt>
    <h4 class="name" id="addData"><span class="type-signature"></span>addData<span class="signature">(data)</span><span class="type-signature"></span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        Template으로 element를 생성하고 지정된 data를 적용하여 parentElement에 추가한다.
    </div>
    

    
    
    
    
    
        <h5>Parameters:</h5>
        

<table class="params">
    <thead>
	<tr>
		
		<th>Name</th>
		
		
		<th>Type</th>
		
		
		
		
		
		<th class="last">Description</th>
	</tr>
	</thead>
	
	<tbody>
	
	
        <tr>
            
                <td class="name"><code>data</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">property</span>


            
            </td>
            
            
            
            
            
            <td class="description last">적용될 data.</td>
        </tr>
	
	
	</tbody>
</table>
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="stemplate.js.html">stemplate.js</a>, <a href="stemplate.js.html#line295">line 295</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    
    
</dd>

        
            
<dt>
    <h4 class="name" id="getChildCnt"><span class="type-signature"></span>getChildCnt<span class="signature">()</span><span class="type-signature"> &rarr; {number}</span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        TemplateInfo를 통해 생성된 Element들의 수를 얻는다.
    </div>
    

    
    
    
    
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="stemplate.js.html">stemplate.js</a>, <a href="stemplate.js.html#line243">line 243</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    <h5>Returns:</h5>
    
            
<div class="param-desc">
    TemplateInfo를 통해 생성된 Element들의 수.
</div>



<dl>
	<dt>
		Type
	</dt>
	<dd>
		
<span class="param-type">number</span>


	</dd>
</dl>

        
    
    
</dd>

        
            
<dt>
    <h4 class="name" id="getChildElem"><span class="type-signature"></span>getChildElem<span class="signature">(idx)</span><span class="type-signature"> &rarr; {element}</span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        TemplateInfo를 통해 생성된 Element 중 지정된 순서에 있는 Element를 얻는다.
    </div>
    

    
    
    
    
    
        <h5>Parameters:</h5>
        

<table class="params">
    <thead>
	<tr>
		
		<th>Name</th>
		
		
		<th>Type</th>
		
		
		
		
		
		<th class="last">Description</th>
	</tr>
	</thead>
	
	<tbody>
	
	
        <tr>
            
                <td class="name"><code>idx</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">number</span>


            
            </td>
            
            
            
            
            
            <td class="description last">얻고자 하는 Element의 index.</td>
        </tr>
	
	
	</tbody>
</table>
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="stemplate.js.html">stemplate.js</a>, <a href="stemplate.js.html#line254">line 254</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    <h5>Returns:</h5>
    
            
<div class="param-desc">
    지정된 순서에 있는 Element.
</div>



<dl>
	<dt>
		Type
	</dt>
	<dd>
		
<span class="param-type">element</span>


	</dd>
</dl>

        
    
    
</dd>

        
            
<dt>
    <h4 class="name" id="getChildElemList"><span class="type-signature"></span>getChildElemList<span class="signature">()</span><span class="type-signature"> &rarr; {array}</span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        TemplateInfo를 통해 생성된 Element들을 얻는다.
    </div>
    

    
    
    
    
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="stemplate.js.html">stemplate.js</a>, <a href="stemplate.js.html#line227">line 227</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    <h5>Returns:</h5>
    
            
<div class="param-desc">
    TemplateInfo를 통해 생성된 Element들의 배열.
</div>



<dl>
	<dt>
		Type
	</dt>
	<dd>
		
<span class="param-type">array</span>


	</dd>
</dl>

        
    
    
</dd>

        
            
<dt>
    <h4 class="name" id="getData"><span class="type-signature"></span>getData<span class="signature">(idx)</span><span class="type-signature"> &rarr; {property}</span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        Template으로 생성된 element에서 지정된 data를 얻는다.
    </div>
    

    
    
    
    
    
        <h5>Parameters:</h5>
        

<table class="params">
    <thead>
	<tr>
		
		<th>Name</th>
		
		
		<th>Type</th>
		
		
		
		
		
		<th class="last">Description</th>
	</tr>
	</thead>
	
	<tbody>
	
	
        <tr>
            
                <td class="name"><code>idx</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">number</span>


            
            </td>
            
            
            
            
            
            <td class="description last">element의 index.(template이 fixed인 경우에는 사용되지 않음.)</td>
        </tr>
	
	
	</tbody>
</table>
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="stemplate.js.html">stemplate.js</a>, <a href="stemplate.js.html#line353">line 353</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    <h5>Returns:</h5>
    
            
<div class="param-desc">
    element에 지정된 data.
</div>



<dl>
	<dt>
		Type
	</dt>
	<dd>
		
<span class="param-type">property</span>


	</dd>
</dl>

        
    
    
</dd>

        
            
<dt>
    <h4 class="name" id="getFieldCB"><span class="type-signature"></span>getFieldCB<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="global.html#fieldCallback">fieldCallback</a>}</span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        Template에 data가 적용될 때, 호출되는 함수를 얻는다.
    </div>
    

    
    
    
    
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="stemplate.js.html">stemplate.js</a>, <a href="stemplate.js.html#line286">line 286</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    <h5>Returns:</h5>
    
            
<div class="param-desc">
    Template에 data가 적용될 때, 호출되는 함수.
</div>



<dl>
	<dt>
		Type
	</dt>
	<dd>
		
<span class="param-type"><a href="global.html#fieldCallback">fieldCallback</a></span>


	</dd>
</dl>

        
    
    
</dd>

        
            
<dt>
    <h4 class="name" id="getInfo"><span class="type-signature"></span>getInfo<span class="signature">()</span><span class="type-signature"> &rarr; {property}</span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        TemplateInfo에서 전체 field의 상세 정보를 얻는다.
    </div>
    

    
    
    
    
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="stemplate.js.html">stemplate.js</a>, <a href="stemplate.js.html#line210">line 210</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    <h5>Returns:</h5>
    
            
<div class="param-desc">
    상세 정보를 포함하는 객체.
</div>



<dl>
	<dt>
		Type
	</dt>
	<dd>
		
<span class="param-type">property</span>


	</dd>
</dl>

        
    
    
</dd>

        
            
<dt>
    <h4 class="name" id="insertData"><span class="type-signature"></span>insertData<span class="signature">(data)</span><span class="type-signature"></span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        Template으로 element를 생성하고 지정된 data를 적용하여 parentElement에 삽입한다.
    </div>
    

    
    
    
    
    
        <h5>Parameters:</h5>
        

<table class="params">
    <thead>
	<tr>
		
		<th>Name</th>
		
		
		<th>Type</th>
		
		
		
		
		
		<th class="last">Description</th>
	</tr>
	</thead>
	
	<tbody>
	
	
        <tr>
            
                <td class="name"><code>data</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">property</span>


            
            </td>
            
            
            
            
            
            <td class="description last">적용될 data.</td>
        </tr>
	
	
	</tbody>
</table>
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="stemplate.js.html">stemplate.js</a>, <a href="stemplate.js.html#line313">line 313</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    
    
</dd>

        
            
<dt>
    <h4 class="name" id="processField"><span class="type-signature"></span>processField<span class="signature">(parent, elem, key, value, target, type)</span><span class="type-signature"></span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        Template에 data가 적용될 때, 호출되는 기본 함수로서 field name에 따른 value의 처리를 담당한다.
    </div>
    

    
    
    
    
    
        <h5>Parameters:</h5>
        

<table class="params">
    <thead>
	<tr>
		
		<th>Name</th>
		
		
		<th>Type</th>
		
		
		
		
		
		<th class="last">Description</th>
	</tr>
	</thead>
	
	<tbody>
	
	
        <tr>
            
                <td class="name"><code>parent</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">element</span>


            
            </td>
            
            
            
            
            
            <td class="description last">Template으로 지정된 Element의 parentElement.</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>elem</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">element</span>


            
            </td>
            
            
            
            
            
            <td class="description last">Template이 적용되는 Element.</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>key</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">string</span>


            
            </td>
            
            
            
            
            
            <td class="description last">field name.</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>value</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">var</span>


            
            </td>
            
            
            
            
            
            <td class="description last">field에 적용되는 value.</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>target</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">string</span>


            
            </td>
            
            
            
            
            
            <td class="description last">적용되는 property 또는 attribute의 name.</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>type</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">string</span>


            
            </td>
            
            
            
            
            
            <td class="description last">[ "prop" | "attr" ] property에 적용될 것인지 attribute에 적용될 것인지를 지정.</td>
        </tr>
	
	
	</tbody>
</table>
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="stemplate.js.html">stemplate.js</a>, <a href="stemplate.js.html#line270">line 270</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    
    
</dd>

        
            
<dt>
    <h4 class="name" id="removeData"><span class="type-signature"></span>removeData<span class="signature">(elem)</span><span class="type-signature"> &rarr; {element}</span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        Template으로 생성된 element를 제거한다.
    </div>
    

    
    
    
    
    
        <h5>Parameters:</h5>
        

<table class="params">
    <thead>
	<tr>
		
		<th>Name</th>
		
		
		<th>Type</th>
		
		
		
		
		
		<th class="last">Description</th>
	</tr>
	</thead>
	
	<tbody>
	
	
        <tr>
            
                <td class="name"><code>elem</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">element</span>
|

<span class="param-type">number</span>


            
            </td>
            
            
            
            
            
            <td class="description last">제거할 element 또는 제거할 element의 index.(template이 fixed인 경우에는 사용되지 않음.)</td>
        </tr>
	
	
	</tbody>
</table>
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="stemplate.js.html">stemplate.js</a>, <a href="stemplate.js.html#line367">line 367</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    <h5>Returns:</h5>
    
            
<div class="param-desc">
    제거된 element.
</div>



<dl>
	<dt>
		Type
	</dt>
	<dd>
		
<span class="param-type">element</span>


	</dd>
</dl>

        
    
    
</dd>

        
            
<dt>
    <h4 class="name" id="setData"><span class="type-signature"></span>setData<span class="signature">(data, idx)</span><span class="type-signature"></span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        Template으로 생성된 element에 지정된 data를 적용한다.
    </div>
    

    
    
    
    
    
        <h5>Parameters:</h5>
        

<table class="params">
    <thead>
	<tr>
		
		<th>Name</th>
		
		
		<th>Type</th>
		
		
		
		
		
		<th class="last">Description</th>
	</tr>
	</thead>
	
	<tbody>
	
	
        <tr>
            
                <td class="name"><code>data</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">property</span>


            
            </td>
            
            
            
            
            
            <td class="description last">적용될 data.</td>
        </tr>
	
	
	
        <tr>
            
                <td class="name"><code>idx</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">number</span>


            
            </td>
            
            
            
            
            
            <td class="description last">적용될 element의 index.(template이 fixed인 경우에는 사용되지 않음.)</td>
        </tr>
	
	
	</tbody>
</table>
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="stemplate.js.html">stemplate.js</a>, <a href="stemplate.js.html#line336">line 336</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    
    
</dd>

        
            
<dt>
    <h4 class="name" id="setFieldCB"><span class="type-signature"></span>setFieldCB<span class="signature">(cb)</span><span class="type-signature"></span></h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        Template에 data가 적용될 때, 호출되는 함수를 지정한다.
    </div>
    

    
    
    
    
    
        <h5>Parameters:</h5>
        

<table class="params">
    <thead>
	<tr>
		
		<th>Name</th>
		
		
		<th>Type</th>
		
		
		
		
		
		<th class="last">Description</th>
	</tr>
	</thead>
	
	<tbody>
	
	
        <tr>
            
                <td class="name"><code>cb</code></td>
            
            
            <td class="type">
            
                
<span class="param-type">processCallback</span>


            
            </td>
            
            
            
            
            
            <td class="description last">Template에 data가 적용될 때, 호출되는 함수.</td>
        </tr>
	
	
	</tbody>
</table>
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="stemplate.js.html">stemplate.js</a>, <a href="stemplate.js.html#line277">line 277</a>
    </li></ul></dd>
    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    
    
</dd>

        </dl>
    
    
    
    
    
</article>

</section>  




</div>

<nav>
    <h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="Template.html">Template</a></li><li><a href="TemplateInfo.html">TemplateInfo</a></li></ul><h3>Namespaces</h3><ul><li><a href="stpl_config.html">stpl_config</a></li></ul><h3>Global</h3><ul><li><a href="global.html#stpl">stpl</a></li></ul>
</nav>

<br clear="both">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Sun Feb 01 2015 01:02:06 GMT+0900 (KST)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>